package com.foreknow.entity;

public class DepartmentList {
    //科室Id
    private Integer ID;
    //科室常数
    private String DeptCode;
    //科室名称
    private String DeptName;
    //所属科室ID
    private Integer DeptCategoryId;//显示主键
    //科室类别（常数表）
    private String ConstantName;
    //科室类型
    private Integer DeptType;
    //科室类型名称
    private String DeptTypeName;

    public Integer getID() {
        return ID;
    }

    public void setID(Integer ID) {
        this.ID = ID;
    }

    public String getConstantName() {
        return ConstantName;
    }

    public void setConstantName(String constantName) {
        ConstantName = constantName;
    }

    public String getDeptCode() {
        return DeptCode;
    }

    public void setDeptCode(String deptCode) {
        DeptCode = deptCode;
    }

    public String getDeptName() {
        return DeptName;
    }

    public void setDeptName(String deptName) {
        DeptName = deptName;
    }

    public Integer getDeptCategoryId() {
        return DeptCategoryId;
    }

    public void setDeptCategoryId(Integer deptCategoryId) {
        DeptCategoryId = deptCategoryId;
    }

    public Integer getDeptType() {
        return DeptType;
    }

    public void setDeptType(Integer deptType) {
        DeptType = deptType;
    }

    public void setDeptTypeName(){
        int id = this.DeptType;
        String name;
        switch(id){
            case 1 :
                name = "临床";
                break;
            case 2 :
                name = "医技";
                break;
            case 3 :
                name = "财务";
                break;
            case 4 :
                name = "行政";
                break;
            case 5 :
                name = "其它";
                break;
            default:
                name = "ID未设定";
                break;
        }
        this.DeptTypeName = id +"-"+ name;
    }

    public String getDeptTypeName() {
        return DeptTypeName;
    }
}
